home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / DDJ0992.ARJ / DBMAC.INC < prev    next >
Text File  |  1992-05-28  |  1KB  |  46 lines

  1. ;---------------------------------------------------------------    
  2. ;dbmac.inc - macros for debugger.                              |
  3. ;--------------------------------------------------------------|
  4. DOINT           macro   num
  5. int_&num        label   near
  6.                 PUBLIC  int_&num
  7.                 push    bp
  8.                 push    &num
  9.                 jmp     pass_thru
  10.                 endm
  11.  
  12. DOEXCP          macro   num
  13. except_&num     label   near
  14.                 PUBLIC  except_&num
  15.                 push    bp
  16.                 push    &num
  17.                 jmp     except_handler
  18.                 endm
  19.  
  20. DOEXCPH         macro   num
  21. int_&num        label   near
  22.                 PUBLIC  int_&num
  23.                 push    bp
  24.                 push    &num - 18h
  25.                 jmp     pass_thru
  26.                 endm
  27.  
  28. DEFIDTI         macro   num
  29.                 idt     <isrcode:int_&num,gdt_seg:sel_isrcode,,,>
  30.                 endm
  31.  
  32. DEFIDTE         macro   num
  33.                 idt     <isrcode:except_&num,gdt_seg:sel_isrcode,,,>
  34.                 endm
  35.  
  36. WRITE_CHAR      macro
  37.                 mov     es:[di], al
  38.                 endm
  39.  
  40. WRITE_POS       macro
  41.                 stosb
  42.                 inc     di
  43.                 endm
  44.  
  45. ;------end of dbmac.inc
  46.